using System;
using Microsoft.SPOT;
using Gadgeteer.Interfaces.Fakes;

namespace Gadgeteer.Interfaces
{
    public static class ServiceLocatorExtensions
    {
        public static void Setup(this ServiceLocator locator)
        {
            if (locator == null)
                throw new ArgumentNullException("locator");

            ServiceLocator.Setup(new ThreadingTimerFactory(), new DebugLogger(), new FakeClock());
        }
    }
}
